/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 * Description: hccl 内部公共数据结构
 */

#ifndef HCCL_INNER_COMMON_H
#define HCCL_INNER_COMMON_H

namespace hccl {
constexpr u64 DEVICE_MEM_MAX_COUNT = 0x1000000000; // device申请内存最大值 64GB
constexpr u64 HOST_MEM_MAX_COUNT = 0x10000000000; // host申请内存最大值 1TB


constexpr u32 MAX_DEV_NUM = 16;
constexpr u32 DEFAULT_DEVICE_LOGIC_ID = MAX_DEV_NUM - 1;


enum class RmaType {
    IPC_RMA = 0,
    RDMA_RMA,
    RMA_TYPE_RESERVED
};
}  // namespace hccl
#endif  // HCCL_INNER_COMMON_H